#ifndef UTIL_MYSQL_MANAGER_H
#define UTIL_MYSQL_MANAGER_H

#include <mysql/mysql.h>
#include <string>

namespace util {

class MySQLManager {
public:
    MySQLManager(const std::string &host, const std::string &user, const std::string &password, const std::string &db);
    ~MySQLManager();

    bool registerUser(const std::string &username, const std::string &password);
    bool loginUser(const std::string &username, const std::string &password);

private:
    MYSQL *_conn;
};

} // namespace util

#endif // UTIL_MYSQL_MANAGER_H
